3.196 \(\int (a+a \sin (e+f x))^m (A+B \sin (e+f x)) (c-c \sin (e+f x))^3 \, dx\)

Optimal. Leaf size=145 \[ \frac {a^4 c^3 2^{m+\frac {1}{2}} (B (3-m)-A (m+4)) \cos ^7(e+f x) (\sin (e+f x)+1)^{\frac {1}{2}-m} (a \sin (e+f x)+a)^{m-4} \, _2F_1\left (\frac {7}{2},\frac {1}{2}-m;\frac {9}{2};\frac {1}{2} (1-\sin (e+f x))\right )}{7 f (m+4)}-\frac {a^3 B c^3 \cos ^7(e+f x) (a \sin (e+f x)+a)^{m-3}}{f (m+4)} \]

[Out]

1/7*2^(1/2+m)*a^4*c^3*(B*(3-m)-A*(4+m))*cos(f*x+e)^7*hypergeom([7/2, 1/2-m],[9/2],1/2-1/2*sin(f*x+e))*(1+sin(f
*x+e))^(1/2-m)*(a+a*sin(f*x+e))^(-4+m)/f/(4+m)-a^3*B*c^3*cos(f*x+e)^7*(a+a*sin(f*x+e))^(-3+m)/f/(4+m)

________________________________________________________________________________________

Rubi [A]  time = 0.34, antiderivative size = 145, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.139, Rules used = {2967, 2860, 2689, 70, 69} \[ \frac {a^4 c^3 2^{m+\frac {1}{2}} (B (3-m)-A (m+4)) \cos ^7(e+f x) (\sin (e+f x)+1)^{\frac {1}{2}-m} (a \sin (e+f x)+a)^{m-4} \, _2F_1\left (\frac {7}{2},\frac {1}{2}-m;\frac {9}{2};\frac {1}{2} (1-\sin (e+f x))\right )}{7 f (m+4)}-\frac {a^3 B c^3 \cos ^7(e+f x) (a \sin (e+f x)+a)^{m-3}}{f (m+4)} \]

Antiderivative was successfully verified.

[In]

Int[(a + a*Sin[e + f*x])^m*(A + B*Sin[e + f*x])*(c - c*Sin[e + f*x])^3,x]

[Out]

(2^(1/2 + m)*a^4*c^3*(B*(3 - m) - A*(4 + m))*Cos[e + f*x]^7*Hypergeometric2F1[7/2, 1/2 - m, 9/2, (1 - Sin[e +
f*x])/2]*(1 + Sin[e + f*x])^(1/2 - m)*(a + a*Sin[e + f*x])^(-4 + m))/(7*f*(4 + m)) - (a^3*B*c^3*Cos[e + f*x]^7
*(a + a*Sin[e + f*x])^(-3 + m))/(f*(4 + m))

Rule 69

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*Hypergeometric2F1[
-n, m + 1, m + 2, -((d*(a + b*x))/(b*c - a*d))])/(b*(m + 1)*(b/(b*c - a*d))^n), x] /; FreeQ[{a, b, c, d, m, n}
, x] && NeQ[b*c - a*d, 0] &&  !IntegerQ[m] &&  !IntegerQ[n] && GtQ[b/(b*c - a*d), 0] && (RationalQ[m] ||  !(Ra
tionalQ[n] && GtQ[-(d/(b*c - a*d)), 0]))

Rule 70

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Dist[(c + d*x)^FracPart[n]/((b/(b*c - a*d)
)^IntPart[n]*((b*(c + d*x))/(b*c - a*d))^FracPart[n]), Int[(a + b*x)^m*Simp[(b*c)/(b*c - a*d) + (b*d*x)/(b*c -
 a*d), x]^n, x], x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] &&  !IntegerQ[m] &&  !IntegerQ[n] &&
(RationalQ[m] ||  !SimplerQ[n + 1, m + 1])

Rule 2689

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[(a^2*
(g*Cos[e + f*x])^(p + 1))/(f*g*(a + b*Sin[e + f*x])^((p + 1)/2)*(a - b*Sin[e + f*x])^((p + 1)/2)), Subst[Int[(
a + b*x)^(m + (p - 1)/2)*(a - b*x)^((p - 1)/2), x], x, Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, g, m, p}, x] &&
 EqQ[a^2 - b^2, 0] &&  !IntegerQ[m]

Rule 2860

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_.) + (d_.)*sin[(e_.)
 + (f_.)*(x_)]), x_Symbol] :> -Simp[(d*(g*Cos[e + f*x])^(p + 1)*(a + b*Sin[e + f*x])^m)/(f*g*(m + p + 1)), x]
+ Dist[(a*d*m + b*c*(m + p + 1))/(b*(m + p + 1)), Int[(g*Cos[e + f*x])^p*(a + b*Sin[e + f*x])^m, x], x] /; Fre
eQ[{a, b, c, d, e, f, g, m, p}, x] && EqQ[a^2 - b^2, 0] && NeQ[m + p + 1, 0]

Rule 2967

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_) + (d_.)*sin[(e_
.) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[a^m*c^m, Int[Cos[e + f*x]^(2*m)*(c + d*Sin[e + f*x])^(n - m)*(A + B
*Sin[e + f*x]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && I
ntegerQ[m] &&  !(IntegerQ[n] && ((LtQ[m, 0] && GtQ[n, 0]) || LtQ[0, n, m] || LtQ[m, n, 0]))

Rubi steps

\begin {align*} \int (a+a \sin (e+f x))^m (A+B \sin (e+f x)) (c-c \sin (e+f x))^3 \, dx &=\left (a^3 c^3\right ) \int \cos ^6(e+f x) (a+a \sin (e+f x))^{-3+m} (A+B \sin (e+f x)) \, dx\\ &=-\frac {a^3 B c^3 \cos ^7(e+f x) (a+a \sin (e+f x))^{-3+m}}{f (4+m)}+\left (a^3 c^3 \left (A-\frac {B (3-m)}{4+m}\right )\right ) \int \cos ^6(e+f x) (a+a \sin (e+f x))^{-3+m} \, dx\\ &=-\frac {a^3 B c^3 \cos ^7(e+f x) (a+a \sin (e+f x))^{-3+m}}{f (4+m)}+\frac {\left (a^5 c^3 \left (A-\frac {B (3-m)}{4+m}\right ) \cos ^7(e+f x)\right ) \operatorname {Subst}\left (\int (a-a x)^{5/2} (a+a x)^{-\frac {1}{2}+m} \, dx,x,\sin (e+f x)\right )}{f (a-a \sin (e+f x))^{7/2} (a+a \sin (e+f x))^{7/2}}\\ &=-\frac {a^3 B c^3 \cos ^7(e+f x) (a+a \sin (e+f x))^{-3+m}}{f (4+m)}+\frac {\left (2^{-\frac {1}{2}+m} a^5 c^3 \left (A-\frac {B (3-m)}{4+m}\right ) \cos ^7(e+f x) (a+a \sin (e+f x))^{-4+m} \left (\frac {a+a \sin (e+f x)}{a}\right )^{\frac {1}{2}-m}\right ) \operatorname {Subst}\left (\int \left (\frac {1}{2}+\frac {x}{2}\right )^{-\frac {1}{2}+m} (a-a x)^{5/2} \, dx,x,\sin (e+f x)\right )}{f (a-a \sin (e+f x))^{7/2}}\\ &=-\frac {2^{\frac {1}{2}+m} a^4 c^3 \left (A-\frac {B (3-m)}{4+m}\right ) \cos ^7(e+f x) \, _2F_1\left (\frac {7}{2},\frac {1}{2}-m;\frac {9}{2};\frac {1}{2} (1-\sin (e+f x))\right ) (1+\sin (e+f x))^{\frac {1}{2}-m} (a+a \sin (e+f x))^{-4+m}}{7 f}-\frac {a^3 B c^3 \cos ^7(e+f x) (a+a \sin (e+f x))^{-3+m}}{f (4+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [F]  time = 180.06, size = 0, normalized size = 0.00 \[ \text {\$Aborted} \]

Verification is Not applicable to the result.

[In]

Integrate[(a + a*Sin[e + f*x])^m*(A + B*Sin[e + f*x])*(c - c*Sin[e + f*x])^3,x]

[Out]

$Aborted

________________________________________________________________________________________

fricas [F]  time = 0.48, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-{\left (B c^{3} \cos \left (f x + e\right )^{4} + {\left (3 \, A - 5 \, B\right )} c^{3} \cos \left (f x + e\right )^{2} - 4 \, {\left (A - B\right )} c^{3} - {\left ({\left (A - 3 \, B\right )} c^{3} \cos \left (f x + e\right )^{2} - 4 \, {\left (A - B\right )} c^{3}\right )} \sin \left (f x + e\right )\right )} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^m*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3,x, algorithm="fricas")

[Out]

integral(-(B*c^3*cos(f*x + e)^4 + (3*A - 5*B)*c^3*cos(f*x + e)^2 - 4*(A - B)*c^3 - ((A - 3*B)*c^3*cos(f*x + e)
^2 - 4*(A - B)*c^3)*sin(f*x + e))*(a*sin(f*x + e) + a)^m, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int -{\left (B \sin \left (f x + e\right ) + A\right )} {\left (c \sin \left (f x + e\right ) - c\right )}^{3} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^m*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3,x, algorithm="giac")

[Out]

integrate(-(B*sin(f*x + e) + A)*(c*sin(f*x + e) - c)^3*(a*sin(f*x + e) + a)^m, x)

________________________________________________________________________________________

maple [F]  time = 8.10, size = 0, normalized size = 0.00 \[ \int \left (a +a \sin \left (f x +e \right )\right )^{m} \left (A +B \sin \left (f x +e \right )\right ) \left (c -c \sin \left (f x +e \right )\right )^{3}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+a*sin(f*x+e))^m*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3,x)

[Out]

int((a+a*sin(f*x+e))^m*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3,x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ -\int {\left (B \sin \left (f x + e\right ) + A\right )} {\left (c \sin \left (f x + e\right ) - c\right )}^{3} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))^m*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))^3,x, algorithm="maxima")

[Out]

-integrate((B*sin(f*x + e) + A)*(c*sin(f*x + e) - c)^3*(a*sin(f*x + e) + a)^m, x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \left (A+B\,\sin \left (e+f\,x\right )\right )\,{\left (a+a\,\sin \left (e+f\,x\right )\right )}^m\,{\left (c-c\,\sin \left (e+f\,x\right )\right )}^3 \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((A + B*sin(e + f*x))*(a + a*sin(e + f*x))^m*(c - c*sin(e + f*x))^3,x)

[Out]

int((A + B*sin(e + f*x))*(a + a*sin(e + f*x))^m*(c - c*sin(e + f*x))^3, x)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+a*sin(f*x+e))**m*(A+B*sin(f*x+e))*(c-c*sin(f*x+e))**3,x)

[Out]

Timed out

________________________________________________________________________________________